Windows 8 XAML Primer by Jesse Liberty

Windows 8 XAML Primer by Jesse Liberty

Author:Jesse Liberty
Language: eng
Format: epub, pdf
Publisher: Apress®
Published: 2011-10-30T16:00:00+00:00


Figure 3-6. WrapGrid

Border

Border does not inherit from Panel, but it is often used as a panel, so I’ve included here because it is a popular control. While there are other creative uses for Border, its principle usage is to create a border around one or more controls (hence the name). When you create a border, you define the border color and the thickness of the border. You might also define the size of the border and its alignment, especially if it is going to sit inside a slot bigger than the border itself (e.g., inside a grid with one cell). This is illustrated in the following code:

<Border

BorderBrush="Blue"

BorderThickness="3"

Width="200"

Height="100"

HorizontalAlignment="Left"

VerticalAlignment="Top"

Margin="20">

<TextBlock

Text="I'm inside a border!" />



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.